<?php
require_once "session.php";
$weixin_id=$_SESSION["user"];
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>佣金记录</title>
    <link href="../static/css/bootstrap.min.css" rel="stylesheet">
    <script src="../static/js/jquery.min.js" type="text/javascript"></script>
    <script src="../static/js/bootstrap.min.js" type="text/javascript"></script>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="style.css">
    <style>
        .table{
             text-align: center;
         }
        #table_head{
            font-size: 12px;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div id="head" style="position: relative;">
    <a href="javascript:history.go(-1)" class="back_btn">
        <span class="glyphicon glyphicon-chevron-left " style="line-height: 45px"></span>
    </a>
    <span style="font-size: 25px;">佣金记录</span>
</div>
<div style="height:450px;overflow-y:auto; ">
    <table class="table table-bordered">
        <tr id="table_head">
            <td>佣金金额</td>
            <td>到账时间</td>
            <td>备注</td>
        </tr>
        <?php
        $user=$core->GetUserByWxId($weixin_id);
        $bonus=$core->getUserBonus($user["id"]);
        foreach ($bonus as $v){
            ?>
            <tr>
                <td><?php echo $v["money"];?></td>
                <td><?php echo $v["create_time"];?></td>
                <td><?php
                    $a=$core->GetUserById($v["remark"]);
                    echo $a["name"];?></td>
            </tr>
        <?php } ?>
    </table>
</div>
</body>
</html>
